{% extends "base/base_width_left.html" %}
{% load pagination_tags %}

{% block flag %}log{% endblock %}
{% block path %}
    <a href="{% url 'operation:list'%}" title="" class="tip-bottom">日志列表</a>
    <a href="" title="" class="tip-bottom">日志详情查看</a>
{% endblock %}

{#{% block searchname %}searchaction{% endblock %}#}
{#{% block searchtip %}订单编号{% endblock %}#}

{% block container %}
    {{ block.super }}
        {% autopaginate detail_list 10%}
    {#    <ul class="nav nav-tabs">#}
    {#        <li role="presentation" class="active"><a href="{% url 'product:product_list' %}">订单</a></li>#}
    {#        <li role="presentation"><a href="{% url 'product:type_list' %}">分 类</a></li>#}
    {#        <li role="presentation"><a href="{% url 'product:theme_list' %}">主题</a></li>#}
    {#    </ul>#}
    <div hidediv="hide" class="table-responsive">
        <table class="table table-hover table-bordered ">
            <thead>
            <tr>
                <th>剧本名</th>
                <th>结果</th>
                <th>状态</th>
{#                <th>开始时间</th>#}
{#                <th>结束时间</th>#}
{#                <th>状态</th>#}
{#                <th>操作</th>#}
            </tr>
            </thead>
            {% for detail in detail_list %}
                <tr>
                    <td class="col-sm-2">
                        {% if detail.operation_log.play_books %}
                        {{ detail.operation_log.play_books.name }}
                        {% else %}
                            更新操作
                        {% endif %}
                    </td>
                    <td>
                        {{ detail.result }}
                    </td>
                    <td>
                        {{ detail.status }}
                    </td>
                </tr>
            {% empty %}
                <tr>
                    <td colspan="8"><p>没有查询到相关信息.</p></td>
                </tr>
            {% endfor %}
        </table>
     {% paginate %}
{#        <div class="pagination">#}
{#            <span class="step-links">#}
{#                {% if page_obj.has_previous %}#}
{#                    <a href="?page={{ page_obj.prevous_page_number }}">上一页</a>#}
{#                {% endif %}#}
{#                <span class="current">#}
{#                    page {{ page_obj.number }} of {{ paginator.num_pages }}.#}
{#                </span>#}
{#                {% if page_obj.has_next %}#}
{##}
{#                    <a href="?page={{ page_obj.next_page_number }}">下一页</a>#}
{#                {% endif %}#}
{#            </span>#}
{#        </div>#}

    </div>
{% endblock %}
{% block footjs %}
    <script>

    </script>
{% endblock %}
